package com.zsy._15单例模式;

/**
 * 静态内部类实现单例模式
 *
 * @author: zhangshuaiyin
 * @date: 2021/10/4 23:26
 */
public class Single04StaticInner {

    private Single04StaticInner() {
    }

    public static Single04StaticInner getInstance() {
        return InnerClass.INSTANCE;
    }

    public static class InnerClass {
        private static final Single04StaticInner INSTANCE = new Single04StaticInner();
    }
}
